package com.zy.oopcon;

public class Person extends Object{
    private String name;// 名字
    private int age;// 年龄
    private String school;//学校
    private String major;//专业

    public Person(){

    }
    public Person(String name){
        this.name = name;
    }
    public Person(String name,int age,String school,String major){
        this.name = name;
        this.age = age;
        this.school = school;
        this.major = major;
    }

    public String test(){
        System.out.println("test....");
        return "test....";


    }
   public String test2(){
       String res =  test();
       System.out.println("test2 res："+res);
       return "";
   }
    @Override
    public String toString() {
        return "Person{" +
                "name='" + name + '\'' +
                ", age=" + age +
                ", school='" + school + '\'' +
                ", major='" + major + '\'' +
                '}';
    }
    public  void print(int i) {}
    public static void print(float f) {}
    private static void print(String s) {}
    void find(int a,char b,double c){}
    void find(int a,double c,char b){}

    void find(double c){}
    void defind(){ }

    double find(int x,double z){return 1.1;}
    public static void main(String[] args) {
        Person p = new Person();
        String res32 = p.test2();
        System.out.println(res32);


//        Person p1 = new Person("zs");
//        Person p3 = new Person("李四",30,"大学","英语");

//        System.out.println(p);
//        System.out.println(p1);
//        System.out.println(p3);
    }

}
